package cn.jiangjiesheng.bootstrap.commons.event;

import org.springframework.context.ApplicationListener;

/**
 * Created by dev@jiangjiesheng.cn on 2021/9/28  <br/>
 *
 * @author dev@jiangjiesheng.cn
 */
public abstract class DomainEventListener<T extends DomainEvent> implements ApplicationListener<T> {

    /**
     * 重写该方法
     *
     * @param domainEvent
     */
    @Override
    public abstract void onApplicationEvent(T domainEvent);

}
